package com.jsj.service;

import com.jsj.pojo.*;

import java.util.List;

public interface HistoryService {

    //三个关键字搜索
    List<DeviceHistory> queryDeviceHistory(String deviceName);
    List<BorrowHistory> queryBorrowHistory(String deviceName);
    List<RepairHistory> queryRepairHistory(String deviceName);
    //三个删除
    Boolean delDeviceHistoryById(int historyId);
    Boolean delBorrowHistoryById(int historyId);
    Boolean delRepairHistoryById(int historyId);
//清空所有历史记录
    Boolean delAllHistory();
    //添加到历史记录
    Boolean addDeviceHistory(DeviceHistory device);
    Boolean addBorrowHistory(BorrowHistory borrow);
    Boolean addRepairHistory(RepairHistory repair);

    //清空devicehistory历史记录
    public Boolean delDeviceHistory();
    public Boolean delBorrowHistory();
    public Boolean delRepairHistory();

}
